package com.stylefeng.guns.rest.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by ASUS-PC on 2019/9/14.
 */
@TableName(value = "vl_article_click")
public class DepartClick extends Model<DepartClick>{
    private static final long serialVersionUID = 1L;
    private int id;
    @TableField(value = "user_id")
    private int userId;
    @TableField(value = "article_id")
    private int articleId;
    private int nums;
    @TableField(value = "create_time")
    private Date createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }

    @Override
    public String toString() {
        return "DepartClick{" +
                "id=" + id +
                ", userId=" + userId +
                ", articleId=" + articleId +
                ", nums=" + nums +
                ", createTime=" + createTime +
                '}';
    }
}
